export default {
	state: {
		orderList:[],
	},
	getters: {
		getOrderByid: (state)=> (id)=>{
			return state.orderList.find(item => item.id === id);
		}
	},
	mutations: {
		add(state,obj){
			state.orderList.push(obj);
		},
	},
	actions: {
		addOrders(context,obj){
			context.commit('add',obj)
		}
	}
}